// pages/plans/plans.js
const app = getApp()
Page({
  data: {
    boxurl: "http://m.qpic.cn/psc?/V51yLbJD2LeiI12TDDCK4eeMpx2rcq88/45NBuzDIW489QBoVep5mcb8zmedKNUrKtBdDqTY.x2l*DrJZ5cu.8wXN3WNE2.ncEmBaaYiN214yhHQalW1s4P17gA8OhOttWdMZlYIgk7s!/b&bo=0A5MBwAAAAADF6c!&rf=viewer_4",
    tabrurl: "http://m.qpic.cn/psc?/V51yLbJD2LeiI12TDDCK4eeMpx2rcq88/45NBuzDIW489QBoVep5mce4JXTSV2VeEpSYC2m9uCfuIWMpw09TWoUa1xu*CkfUCWWZMnt5D2SYfOvBIOxK27Um9poxyJM9LuoP67V0ybjU!/b&bo=KwKLAAAAAAAAF5M!&rf=viewer_4",
    logo: "http://m.qpic.cn/psc?/V51yLbJD2LeiI12TDDCK4eeMpx2rcq88/45NBuzDIW489QBoVep5mcQb.RQ0Pm3aSiHRzhlFAEPeQ1scrGUvrGO*En27IF0DTntar0j8EWdOurPp.wdTetVvxPXpYak7e.cqUVMy6eAM!/b&bo=TAIgAwAAAAAAF1w!&rf=viewer_4",
    plan1: app.globalData.plan1,
    plan2: app.globalData.plan2,
    plan3: app.globalData.plan3,
    plan4: app.globalData.plan4,
    plan5: app.globalData.plan5,
    plan6: app.globalData.plan6,
    plan7: app.globalData.plan7,
    plan8: app.globalData.plan8,
    plan9: app.globalData.plan9,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  input1: function(e){
    this.setData({
      plan1: e.detail.value
    });
    app.globalData.plan1 = e.detail.value;
    console.log(app.globalData.plan1);
  },
  input2: function(e){
    this.setData({
      plan2: e.detail.value
    });
    app.globalData.plan2 = e.detail.value;
    console.log(app.globalData.plan3);
  },
  input3: function(e){
    this.setData({
      plan3: e.detail.value
    });
    app.globalData.plan3 = e.detail.value;
    console.log(app.globalData.plan3);
  },
  input4: function(e){
    this.setData({
      plan4: e.detail.value
    });
    app.globalData.plan4 = e.detail.value;
    console.log(app.globalData.plan4);
  },
  input5: function(e){
    this.setData({
      plan5: e.detail.value
    });
    app.globalData.plan5 = e.detail.value;
    console.log(app.globalData.plan5);
  },
  input6: function(e){
    this.setData({
      plan6: e.detail.value
    });
    app.globalData.plan6 = e.detail.value;
    console.log(app.globalData.plan6);
  },
  input7: function(e){
    this.setData({
      plan7: e.detail.value
    });
    app.globalData.plan7 = e.detail.value;
    console.log(app.globalData.plan7);
  },
  input8: function(e){
    this.setData({
      plan8: e.detail.value
    });
    app.globalData.plan8 = e.detail.value;
    console.log(app.globalData.plan8);
  },
  input9: function(e){
    this.setData({
      plan9: e.detail.value
    });
    app.globalData.plan9 = e.detail.value;
    console.log(app.globalData.plan9);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})